package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserTitleUpgrade;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserTitleUpgradeBussiness {
    public static Map<Integer, UserTitleUpgrade> getUserTitleUpgradeMap(long userId) {
        return DaoHelper.getUserTitleUpgradeDaoImpl().getUserTitleUpgradeMap(userId);
    }

    public static boolean addUserTitleUpgrade(UserTitleUpgrade data) {
        return DaoHelper.getUserTitleUpgradeDaoImpl().add(data);
    }

    public static boolean updateUserTitleUpgrade(UserTitleUpgrade data) {
        return DaoHelper.getUserTitleUpgradeDaoImpl().update(data);
    }
}
